import React from 'react';
import Button from '../../src/Button.js';
var ReactTestUtils = require('react-addons-test-utils');


/*  renderIntoDocument(ReactElement instance);
	Render a component into a detached DOM node in the document. This function requires a DOM.
*/

/*
	this demo create by react-addons-test-utils,not use jasmineReact API
*/


describe('Button should press as beging clicked',()=>{
	
	it('test',() => {
		let node = ReactTestUtils.renderIntoDocument  (
			<Button />
		);
		expect(ReactTestUtils.isCompositeComponent(node));
	});

	

});